<center>
<div class="contentIsi">
    <div class="isi">
        <div class="news">
            <form action="<?php echo base_url() ?>home/daftar_mahasiswa/<?php echo $fakultas ?>" method="post">
            angkatan : <select name="angkatan">
                <option value="">-</option>
            <?php
                for($i=1980;$i<=date('Y');$i++)
                {
                    echo '<option value="'. $i .'">'.$i.'</option>';
                }
            ?>
            </select>
            <input type="submit" value="filter" />
            </form>
            <br />
            <table border="1">
                <tr>
                    <th>NIM</th>
                    <th>Nama</th>
                    <th>Asal</th>
                </tr>
                <?php
                for($i=0;$i<count($row);$i++)
                {
                    echo '<tr>';
                    echo '<td><a href="'. base_url() .'home/profil_mahasiswa/'. $row[$i]['idmhs'] .'">'. $row[$i]['nim'] .'</td>';
                    echo '<td>'. $row[$i]['nama'] .'</td>';
                    echo '<td>'. $row[$i]['asal'] .'</td>';
                    echo '</tr>';
                }
                ?>
            </table>
            <?php
                if($left)
                    {
            ?>
            <form method="post" action="<?php echo base_url()?>home/daftar_mahasiswa/<?php echo $fakultas ?>/<?php echo ($offset-20)?>">
                <input type="hidden" name="angkatan" value="<?php echo $angkatan ?>" />
                <input type="submit" value="<<">
            </form>
            <?php
                    }
                if($right)
                    {
            ?>
            <form method="post" action="<?php echo base_url()?>home/daftar_mahasiswa/<?php echo $fakultas ?>/<?php echo ($offset+20)?>">
                <input type="hidden" name="angkatan" value="<?php echo $angkatan ?>" />
                <input type="submit" value=">>">
            </form>
            <?php
                    }
            ?>
        </div>
    </div>
</div>

</center>
